<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="hmg.vo.SearchVO"%>
<%@ page import="java.util.List"%>
<%-- 
    JSP Name : jspName.jsp
    Description : 설명을 기술합니다.
    author Kim hyung soo
    since 2012. 9. 18.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 9. 18.     Kim hyung soo     최초 생성
--%>
<%
    List<SearchVO> dictionaryList = (List<SearchVO>) request.getAttribute("DictionaryList");
    
    if (dictionaryList == null || dictionaryList.size() == 0)
        out.println("                                <dl style=\"text-align:center;\">검색된 게시물이 없습니다.</dl>");
    else {
        for (int idx = 0; idx < dictionaryList.size(); idx++) {
            SearchVO dictionary = dictionaryList.get(idx);

            if (idx + 1 < dictionaryList.size())
                out.println("                                <dl>");
            else
                out.println("                                <dl class=\"last\">");
%>
                                    <dt>
<%          if (dictionary.getSubTitle() != null) { %>
                                        <span><%= dictionary.getKeyword() %></span><%= dictionary.getSubTitle() %>
<%
            }
            else {
%>
                                        <%= dictionary.getKeyword() %>
<%          } %>
                                    </dt>
                                    <dd style="width:95%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;"><a href="/hmg/web/kor/sch/trm/TermDictionaryView.do?listID=<%= dictionary.getWordID() %>"><%= dictionary.getContent() %></a></dd>
                                </dl>
<%
        }
    }
%>